package com.fortune.dto.in.pRole;

import org.hibernate.validator.constraints.NotEmpty;

import java.util.List;

public class PRolePermissionDto {
    @NotEmpty(message="权限id不能为空")
    private List<PPermissionAddDto> pPermissionAddDtos;
    @NotEmpty(message="岗位id不能为空")
    private String positionId;

    public List<PPermissionAddDto> getpPermissionAddDtos() {
        return pPermissionAddDtos;
    }

    public void setpPermissionAddDtos(List<PPermissionAddDto> pPermissionAddDtos) {
        this.pPermissionAddDtos = pPermissionAddDtos;
    }

    public String getPositionId() {
        return positionId;
    }

    public void setPositionId(String positionId) {
        this.positionId = positionId;
    }

    @Override
    public String toString() {
        return "PRolePermissionDto{" +
                "pPermissionAddDtos=" + pPermissionAddDtos +
                ", positionId='" + positionId + '\'' +
                '}';
    }
}
